import Projecthead from '../components/manage/project/projecthead.vue'
import Projectindex from '../components/manage/project/projectindex.vue';
//派工
import Dispatch from '../components/manage/project/dispatch.vue';
import Showdispatch from '../components/manage/project/showdispatch.vue';
//安全检查
import Security from '../components/manage/project/security.vue';
import Showsecurity from '../components/manage/project/showsecurity.vue';
//维修
import Showrepair from '../components/manage/project/showrepair.vue';




export default {
    routes: [
        {
            path: 'projectindex',
            redirect: 'projectindex/dispatch',
            component: Projectindex,
            children: [
                {
                    //派工
                    path: 'dispatch',
                    component: Dispatch
                },
                {
                    //安全检查
                    path: 'security',
                    component: Security
                }
            ]
        },{
            path:'projecthead',
            redirect:'projecthead/showdispatch',
            component:Projecthead,
            children:[
                {
                    path:'showdispatch',
                    component:Showdispatch
                },{
                    path:'showsecurity',
                    component:Showsecurity
                },{
                    path:'showrepair',
                    component:Showrepair
                }
            ]
        }
    ]
}